<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Read a size of file created by applying a binary diff</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.xdiff-file-bdiff-size" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">xdiff_file_bdiff_size</h1>
  <p class="verinfo">(PECL xdiff &gt;= 1.5.0)</p><p class="refpurpose"><span class="refname">xdiff_file_bdiff_size</span> &mdash; <span class="dc-title">Read a size of file created by applying a binary diff</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.xdiff-file-bdiff-size-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>xdiff_file_bdiff_size</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$file</code></span>
   ) : <span class="type">int</span></div>

  <p class="para rdfs-comment">
   Returns a size of a result file that would be created after applying binary patch from file
   <code class="parameter">file</code> to the original file.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.xdiff-file-bdiff-size-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">file</code></dt>

     <dd>

      <p class="para">
       The path to the binary patch created by <span class="function"><a href="xdiff_string_bdiff.html" class="function">xdiff_string_bdiff()</a></span> or 
       <span class="function"><a href="xdiff_string_rabdiff.html" class="function">xdiff_string_rabdiff()</a></span> function.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.xdiff-file-bdiff-size-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the size of file that would be created.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.xdiff-file-bdiff-size-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-2862">
    <p><strong>Example #1 <span class="function"><strong>xdiff_file_bdiff_size()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     The following code applies reads a size of file that would be created
     after applying a binary diff.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$length&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">xdiff_string_bdiff_size</span><span style="color: #007700">(</span><span style="color: #DD0000">'file.bdiff'</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"Resulting&nbsp;file&nbsp;will&nbsp;be&nbsp;</span><span style="color: #0000BB">$length</span><span style="color: #DD0000">&nbsp;bytes&nbsp;long"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.xdiff-file-bdiff-size-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="xdiff_file_bdiff.html" class="function" rel="rdfs-seeAlso">xdiff_file_bdiff()</a> - Make binary diff of two files</span></li>
    <li class="member"><span class="function"><a href="xdiff_file_rabdiff.html" class="function" rel="rdfs-seeAlso">xdiff_file_rabdiff()</a> - Make binary diff of two files using the Rabin's polynomial fingerprinting algorithm</span></li>
    <li class="member"><span class="function"><a href="xdiff_file_bpatch.html" class="function" rel="rdfs-seeAlso">xdiff_file_bpatch()</a> - Patch a file with a binary diff</span></li>
   </ul>
  </p>
 </div>

</div></div></div></body></html>